package com.lipeng.mapper;

import com.lipeng.bean.Collect;
import com.lipeng.bean.Comment;
import com.lipeng.bean.Photo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface CommentMapper {
    int deleteByPrimaryKey(Integer comid);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(Integer comid);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);

    List<Comment> findAllComment();

    List<Comment> selectCommentByContent(@Param("content") String content);

    List<Comment> selectCommentByPid(Integer pid);

    int delCommentByPid(Integer pid);


}